package com.lishuang.base.ThreadPoolUtil;

import com.lishuang.domain.json.Device;

import java.util.concurrent.ThreadFactory;

/**
 * @author LiShuang
 * @version 1.0.0
 * @date 2022/11/7 18:22
 */
public class ThreadFactory_ implements ThreadFactory {
    @Override
    public Thread newThread(Runnable r) {
//        Device device = (Device)r;
//        Thread deviceThread = new Thread(r);
//        deviceThread.setPriority(device.getPriority());
//        deviceThread.setName(device.getUuid().toString());
//        return deviceThread;
        return new Thread(r);
    }
}
